/**
 * Class DoctorsOrder
 */
package com.data.documents;

/**
 * This class holds information about Doctor's order.
 * 
 * @author Elizabeth
 * @version 1.1
 */
public class DoctorsOrder extends UserDocument {

	/**
	 * prescription variable
	 */
	private String prescription;

	/**
	 * labWorkPerformed variable in String
	 */
	private String labWorkPerformed;

	/**
	 * follow up instruction variable
	 */
	private String followUpInstructions;

	/**
	 * Other instruction variable.
	 */
	private String otherInstructions;

	/**
	 * Constructor for DoctorsOrder class
	 * 
	 * @param docId
	 * @param prescription
	 * @param labWorkPerformed
	 * @param followUpInstructions
	 * @param otherInstructions
	 */
	public DoctorsOrder(String docId, String prescription,
			String labWorkPerformed, String followUpInstructions,
			String otherInstructions) {
		super(docId, "doctors_orders");
		this.prescription = prescription;
		this.labWorkPerformed = labWorkPerformed;
		this.followUpInstructions = followUpInstructions;
		this.otherInstructions = otherInstructions;
	}
	
	/**
	 * Make a new doctors order with the specified docId
	 * 
	 * @param docId
	 */
	public DoctorsOrder(String docId){
		this(docId, "", "", "", "");
	}

	/**
	 * @return the prescription
	 */
	public String getPrescription() {
		return prescription;
	}

	/**
	 * @param prescription
	 *            the prescription to set
	 */
	public void setPrescription(String prescription) {
		this.prescription = prescription;
	}

	/**
	 * @return the labWorkPerformed
	 */
	public String getLabWorkPerformed() {
		return labWorkPerformed;
	}

	/**
	 * @param labWorkPerformed
	 *            the labWorkPerformed to set
	 */
	public void setLabWorkPerformed(String labWorkPerformed) {
		this.labWorkPerformed = labWorkPerformed;
	}

	/**
	 * @return the followUpInstructions
	 */
	public String getFollowUpInstructions() {
		return followUpInstructions;
	}

	/**
	 * @param followUpInstructions
	 *            the followUpInstructions to set
	 */
	public void setFollowUpInstructions(String followUpInstructions) {
		this.followUpInstructions = followUpInstructions;
	}

	/**
	 * @return the otherInstructions
	 */
	public String getOtherInstructions() {
		return otherInstructions;
	}

	/**
	 * @param otherInstructions
	 *            the otherInstructions to set
	 */
	public void setOtherInstructions(String otherInstructions) {
		this.otherInstructions = otherInstructions;
	}

	/**
	 * Tostring method for Doctors Order
	 *@return String of to string
	 */
	@Override
	public String toString() {
		return "DoctorsOrder [prescription=" + prescription
				+ ", labWorkPerformed=" + labWorkPerformed
				+ ", followUpInstructions=" + followUpInstructions
				+ ", otherInstructions=" + otherInstructions + "]";
	}
	
	/**
	 * Get the important information about the Doctors Order
	 * 
	 * @return the string array
	 */
	public String[] getDataAsStrings(){
		String[] sample = {"Doctors Order"," ","note"};
		return sample;
	}
}